package com.school.mapper;

import com.school.entity.Goods;
import com.school.util.PageQueryUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsMapper {
    List<Goods> findGoodsList(PageQueryUtil pageQueryUtil);

    int getTotalGoodsCount(PageQueryUtil pageQueryUtil);

    Goods selectByNameAndCategoryId(String goodsName, Long goodsCategoryId);

    int insertSelective(Goods goods);

    List<Goods> selectByPrimaryKeys(@Param("goodsIds") List<Long> goodsIds);
}
